package com.quectel.cms.constants;

/**
 * 系统参数
 */
public class CmsSystemConstants {
    /**
     * 拦截器的时候把查出来的信息存入 request域中方便controller获取
     */
    public static final String USER_SESSION_SAVE_KEY = "USER_SESSION";

    /**
     * 密码最低的长度
     */
    public static final int PASSWORD_MIN_LENGTH = 6;

    /**
     * token未传入
     */
    public static final int TOKEN_IS_NULL_CODE = 20001;
    public static final String TOKEN_IS_NULL_MSG = "您还没有登录，请进行登录";

    /**
     * token过期
     */
    public static final int TOKEN_EXPIRED_CODE = 20002;
    public static final String TOKEN_EXPIRED_MSG = "访问令牌过期，请重新登录";
    /**
     * 该token下权限不足
     */
    public static final int TOKEN_PRIVILEGE_NOT_ENOUGH_CODE = 20003;
    public static final String TOKEN_PRIVILEGE_NOT_ENOUGH_MSG = "权限不足，请联系管理员";
}
